package svc

import (
	"api/internal/config"
	"github.com/zeromicro/go-zero/zrpc"
	"shop_srv/shopclient"
)

type ServiceContext struct {
	Config config.Config
	Shop   shopclient.Shop
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config: c,
		Shop:   shopclient.NewShop(zrpc.MustNewClient(c.Shop)),
	}
}
